import App from './App'
import Request from './api/request.js'
import store from './store';
import Vue from 'vue'
// main.js
import uView from "uview-ui";
import publicMethod from '@/js/index.js';
import util from 'utils/index'
Vue.prototype.$publicMethod = publicMethod;
uni.$httpRequest = Request.httpRequest
uni.$httpTokenRequest = Request.httpTokenRequest
uni.$BASE_URL = Request.baseUrl
Vue.prototype.sysHeight = function() {
	const systemInfo = uni.getSystemInfoSync();
	// #ifdef MP-WEIXIN
	return 0
	// #endif
	// #ifdef APP-PLUS
	return systemInfo.statusBarHeight;
	// #endif
	
}


Vue.prototype.$util = util;



Vue.use(uView);

import './uni.promisify.adaptor'
App.mpType = 'app'
const app = new Vue({
	...App,
	store
})

app.$mount()